-- GENERATED SPELL FOR [Iron Honor Guard] --


function spell0_32875(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(42724,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32875', 639, 1)
end

function spell1_32875(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(48639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32875', 5279, 1)
end

function spell2_32875(pUnit, Event) --@Shield Smash,n/a--
pUnit:FullCastSpellOnTarget(62332,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32875', 3276, 1)
end

function spell3_32875(pUnit, Event) --@Shield Smash,n/a--
pUnit:FullCastSpellOnTarget(62420,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32875', 3327, 1)
end

function Sorts_32875(pUnit, Event)
local choix_sorts_32875 = math.random(0, 3)
if choix_sorts_32875 == 0 then
pUnit:RegisterEvent('spell0_32875', 1, 1)
end
if choix_sorts_32875 == 1 then
pUnit:RegisterEvent('spell1_32875', 1, 1)
end
if choix_sorts_32875 == 2 then
pUnit:RegisterEvent('spell2_32875', 1, 1)
end
if choix_sorts_32875 == 3 then
pUnit:RegisterEvent('spell3_32875', 1, 1)
end
end

function mob32875_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32875', math.random(1500, 3000), 1)
end

function mob32875_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32875_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32875_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32875, 1, 'mob32875_Action')
RegisterUnitEvent(32875, 2, 'mob32875_Leave')
RegisterUnitEvent(32875, 3, 'mob32875_Kill')
RegisterUnitEvent(32875, 4, 'mob32875_Die')
